package com.tiankun.eurekasellinfo.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author 杨天可
 * @Date 2020/11/14 10:42
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@Table(name = "tb_shop")
public class Shop implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "shop_id")
    private Integer shopId;
    @Column(name = "mer_id")
    private Integer merId;
    @Column(name = "shop_name")
    private String shopName;
    @Column(name = "shop_address")
    private String shopAddress;
    @Column(name = "shop_type")
    private Integer shopType;
    @Column(name = "shop_desc")
    private String shopDesc;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Column(name = "shop_created")
    private Date shopCreated;
    @Column(name = "shop_img")
    private String shopImg;
    @Column(name = "shop_sell")
    private Integer shopSell;
    @Column(name = "shop_license")
    private String shopLicense;
    @Column(name = "shop_state")
    private Integer shopState;
}
